export type TableBasicActionType =
  | 'edit'
  | 'delete'
  | 'detail'
  | 'showMember'
  | 'permission'
  | 'modifyPwd'
  | 'resetPwd'
  | 'bind'
  | 'bindRole'
  | 'bindPlatformRole'
  | 'bindOrginazition'
  | 'previewOrginazition'
  | 'addSub'
  | 'addBtnAuth'

export type TableBasicActionFn = (action: TableBasicActionType, data: any) => void

export interface BasicTableParams {
  pageSize?: number
  current?: number
  keyword?: string
}

export interface TableListQueryParams {
  pageNum: number
  pageSize: number
  [key: string]: any
}

export interface TableListResponse<T = any> {
  empty: boolean
  errCode: string | null
  errMessage: string | null
  notEmpty: boolean
  pageNum: number
  pageSize: number
  success: boolean
  totalCount?: number // 如果需要数字类型，可以使用 number
  totalPages?: number // 如果需要数字类型，可以使用 number
  data: T // 泛型，用于表示具体的数据类型
}
